package mulMan.gui.view;
import java.awt.event.ActionListener;

import javax.swing.JButton;

import mulMan.domain.PlaylistModel;

public class AddPlaylistView extends PlaylistView{
	
	private static final long serialVersionUID = -8083483641423766011L;
	
	private JButton buttonAdd;

	public JButton getButtonAdd() {
		return buttonAdd;
	}
	public void setButtonAdd(JButton buttonAdd) {
		this.buttonAdd = buttonAdd;
	}
	
	

	public AddPlaylistView(PlaylistModel playlist){
		super(playlist);
	}
	
	public void initView() {
		super.initView();
		
		setTitle("Add playlist window");
	    
		buttonAdd = new JButton();
		buttonAdd.setText("Save");
		buttonAdd.setBounds(15, 40, 100, 20);
	    getPanel().add(buttonAdd);
	}
	
	public void addAddPlaylistListener(ActionListener apl) {
		buttonAdd.addActionListener(apl);
    }

}
